import request from '@/utils/request'
//应付

// 取消结清
export function cancelReceivableSettle(id) {
  return request({
    url: '/logi/sys/waybill/receivable/cancelSettle/'+id,
    method: 'post'
  })
}

// 确认收款
export function confirmReceivablePay(data) {
  return request({
    url: '/logi/sys/waybill/receivable/confirmPay',
    method: 'post',
    data: data
  })
}

// 确认结清
export function confirmReceivableSettle(id) {
  return request({
    url: '/logi/sys/waybill/receivable/confirmSettle/'+id,
    method: 'post'
  })
}

// 查询应收列表
export function receivableList(data) {
  return request({
    url: '/logi/sys/waybill/receivable/list',
    method: 'post',
    data
  })
}

// 查询收款记录
export function receivableRecord(id) {
  return request({
    url: '/logi/sys/waybill/receivable/payList/' + id,
    method: 'get',
  })
}

// 修改收款记录
export function updateReceivableRecord(data) {
  return request({
    url: '/logi/sys/waybill/receivable/updateRecord',
    method: 'post',
    data:data
  })
}

// 删除收款记录
export function deleteReceivableRecord(id) {
  return request({
    url: '/logi/sys/waybill/receivable/deleteRecord/'+id,
    method: 'post'
  })
}


